package com.avic.modules.record.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zhangzikang 昨日记录表
 * @date 2022-08-14
 */
@Data
@TableName("see_you_tomorrow")
@NoArgsConstructor
public class SeeYouTomorrow implements Serializable {

    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 设备id
    private String equipId;

    // 昨天换热污染度
    private String heatTransfer;

    // 昨天油源污染度
    private String oilSource;

    public void copy(SeeYouTomorrow source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
